import type { FormInstance } from 'element-plus'
import { IWorks, IList } from '@/interface'
import { ref } from 'vue'

export class InitData {
  worksList: IWorks[] = []

  worksParams: IList = {
    nowPage: 1,
    pageSize: 20
  }

  worksFormRef = ref<FormInstance>()

  waterfallParams = {
    column: 3,
    gap: 20
  }

  hasMore : boolean = true

  offsetList:any = []
  isLoading = true
  isBottom = false // 是否触底
  isFirst = true // 是否初次加载
}
